﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebApplication1
{
    public partial class LabeledCombobox : System.Web.UI.UserControl
    {
        
        
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string LabelText
        {
            set
            {
                Label1.Text = value;
            }
            get
            {
                return Label1.Text;    
            }
        }
        public object DataSource
        {
            set
            {
                DropDownList1.DataSource = value;
            }
            get
            {
                return DropDownList1.DataSource;
            }
        }
        public string SelectedText
        {
            get
            {

                return (string)DropDownList1.SelectedValue; 
            }
        }


    }
}